package com.yunxin.core.application.command.channel;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zero°
 * @since 2023-05-27
 */
@Data
@Schema(description = "新增渠道对象")
public class AddChannelCommand implements Serializable {
    /**
     * 渠道名称
     */
    @Schema(description = "渠道名称")
    @NotBlank(message = "渠道名称不能为空")
    private String channelName;

    /**
     * 渠道code
     */
    @Schema(description = "渠道code")
    @NotBlank(message = "渠道code不能为空")
    private String channelCode;
    /**
     * 渠道logo
     */
    @Schema(description = "渠道logo")
    private String channelLogo;
    /**
     * 渠道类型id
     */
    @Schema(description = "渠道类型id")
    @NotNull(message = "渠道类型id不能为空")
    private Long channelTypeId;
    /**
     * 付款账户
     */
    @Schema(description = "付款账户")
    @NotBlank(message = "付款账户不能为空")
    private String paymentAccount;
    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;
    /**
     * 创建人
     */
    @Schema(hidden = true)
    private String creator;
}
